package com.wrs.examsystem.service;

import com.wrs.examsystem.entity.Result.R;
import com.wrs.examsystem.entity.Test;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wrs.examsystem.mapper.TestMapper;
import io.swagger.models.auth.In;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王荣升
 * @since 2024-05-15
 */
public interface TestService extends IService<Test> {

    public R findTest(Integer testId);
    public R findTests(int[] testId);

    public R findBySubject(String subject);

    @Transactional(rollbackFor = Exception.class)
    public R deleteTest(Integer testId);

    public R insertTests(Test test);
//    public R findStudentGrade(Integer teacherId);

    public R findStudentMark(Integer testId);
}
